@import "theme.scss";

* {
  touch-action: none;
}

.color666 {
  color: $_666;
}

.bgWhite {
  background-color: $_white;
}

// header css
#header {
  height: 48px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
  .mui-bar-nav-no-boxshadow {
    box-shadow: none;
  }
  .mui-title {
    height: 48px;
    line-height: 48px;
  }
  .header-img-wrap {
    width: 60%;
    height: 85%;
    display: inline-flex;
    justify-content: left;
    align-items: flex-end;
  }
  .logo-huawei {
    width: 58px;
  }
  .logo-haoting {
    width: 58px;
  }
}

.mui-bar-nav.mui-bar .header-aside-back,
.mui-bar-nav.mui-bar .header-aside-icon {
  padding: 12px;
}
a {
  touch-action: none;
}
.mui-bar-nav.mui-bar .mui-btn-link {
  font-size: 14px;
  line-height: 48px;
}
.mui-bar-nav ~ .mui-content {
  padding-top: 48px;
}

// footer
.has-footer {
  padding-bottom: 50px;
}
.mui-bar-tab {
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2) !important;
  .footer-tab-item {
    display: table-cell;
    overflow: visible;
    width: 1%;
    height: 50px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #929292;
    .mui-icon {
      top: 3px;
      width: 24px;
      height: 24px;
      padding-top: 0;
      padding-bottom: 0;
      font-size: 20px;
    }
    .mui-tab-label {
      font-size: 10px;
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-top: 1px;
    }
    .icon-phone {
      position: relative;
      &::after {
        content: "";
        display: block;
        width: 44px;
        height: 44px;
        background: url(../images/menu_bottom_phone_icon.png);
        background-size: 100% 100%;
        position: absolute;
        bottom: 0;
        left: -10px;
      }
    }
    &:first-child,
    &:last-child {
      .mui-icon {
        font-size: 18px;
      }
    }
    &.mui-active {
      .mui-icon,
      .mui-tab-label {
        color: $_theme;
      }
    }
  }
}

//详情footer
.detail-bottom {
  display: flex;
  flex-direction: column;
  height: 90px;
  .detail-footer {
    display: flex;
    justify-content: space-between;
    .detail_left {
      background-color: #648faa;
    }
    .detail_right {
      background-color: $_theme;
    }
    .detail-footer-tab-item {
      width: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: visible;
      height: 50px;
      text-align: center;
      vertical-align: middle;
      white-space: nowrap;
      text-overflow: ellipsis;
      color: #ffffff;
      .detail-footer-icon {
        width: 20px;
        height: 20px;
        margin-right: 5px;
      }
    }
  }

  .zixun {
    .zixun-flex {
      display: flex;
      .zixun-input {
        width: 75%;
        font-size: 17px;
        color: #666666;
      }
      .zixun-submit {
        width: 25%;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #648faa;
        color: #ffffff;
        font-size: 17px;
      }
    }
  }
}

// 搜索框
.button-input {
  display: flex;
  margin-top: 12px;
  padding: 0 3.2vw;
  form {
    width: 100%;
  }
  .input-warp {
    display: flex;
    width: 100%;
    .search {
      margin-bottom: 0;
      border-radius: 0 4px 4px 0;
      border: 1px solid #eee;
      background: #fff;
      text-align: left;
      font-size: 12px;
    }
    .fangda {
      border: 0px solid #fff;
      width: 50px;
      background: url(../images/top_search_icon.png) no-repeat right 12px top
          7px,
        #fff;
    }
    .fangda:active {
      background-color: #fff;
      border: 0px solid #fff;
    }
  }
  .mui-btn {
    border-radius: 4px 0 0 4px;
    font-size: 12px;
    line-height: 20px;
    position: relative;
    padding-right: 26px;
    border-color: $_theme;
    background-color: $_theme;
    .mui-icon {
      width: 20px;
      height: 12px;
      background: url(../images/search_jiantou.svg);
      background-size: 100% 100%;
      margin-left: 6px;
      position: absolute;
      top: 0;
      bottom: 0;
      margin: auto;
    }
  }
}
.search-all {
  width: 100%;
  height: 300px;
  max-height: 50vh;
  left: 0 !important;
  .mui-table-view {
    display: flex;
    padding: 1px 3.2vw 25px;
    flex-wrap: wrap;
    .mui-table-view-cell {
      width: 21.6vw;
      height: 26px;
      font-size: 10px;
      background: #f2f2f2;
      padding: 0;
      text-align: center;
      line-height: 26px;
      margin-top: 9px;
      margin-right: 2.4vw;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      &::after {
        height: 0;
      }
      &:nth-child(4n) {
        margin-right: 0;
      }
    }
  }
}

.mui-off-canvas-left,
.mui-off-canvas-right {
  background-color: $_white;
}

.aside-content {
  background-color: $_white;
  .aside-title {
    display: flex;
    margin: 10px 15px;
  }
  .mui-table-view-cell {
    font-size: 13px;
    color: $_333;
    font-weight: 500;
    .aside-icon {
      width: 18px;
      height: 18px;
      margin-right: 3px;
    }
    .mui-navigate-right {
      display: flex;
      align-items: center;
    }
  }
}

.aside-serach-content{
  background-color: $_white;
  .mui-input-group::after{
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    content: "";
    transform: scaleY(0.5);
    background-color: #ffffff;
  }
  .mui-input-group::before{
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    content: "";
    transform: scaleY(0.5);
    background-color: #ffffff;
  }
  .asdie-header{
    color: $_theme;
    display: flex;
    font-size: 14px;
    height: 55px;
    padding: 0px 15px;
    justify-content: space-between;
    align-items: center;
    background-color: #F8F8F8;
    .clear{
      background-color: #648FAA;
      color: $_white;
      border-radius: 5px;
    }
    .submit{
      background-color: #E02020;
      color: $_white;
      border-radius: 5px;
    }
    
  }
  .search-asdie-content{
    font-size: 13px;
    select{
      font-size: 13px;
    }
    .mui-select::before{
      content: "";
        display: block;
        width: 0;
        height: 0;
        border-width: 5px;
        border-style: solid;
        border-color: #E02020 transparent transparent transparent;
        position: absolute;
        top: 11px;
        left: 55px;
    }
    .mui-select{
      margin-top: 40px;
      width: 23vw;
      display: flex;
      align-items: center;
      padding-left: 13px;
    }
    .mui-select:after {
      font-family: Muiicons;
      position: absolute;
      top: 4px;
      right: 21px;
      content: "\E581";
      color: rgba(170, 170, 170, 0.6);
    }
    .mui-select:after{
      position: absolute;
      right: 0;
      bottom: 0;
      left: 1px;
      height: 1px;
      content: "";
      transform: scaleY(0.5);
      background-color: #ffffff;
    }
    .keyword{
      border-radius: 10px;
      border: 1px solid #EEEEEE;
      border-radius: 10px;
      display: flex;
      justify-content: center;
      margin: 15px 10px;
      .keyword-input{
        text-align: center;
        color: $_999;
        font-size: 12px;
      }
    }
    .search-choose-wrap {
      margin-top: 9px;
      // .mui-navigate-right::before{
      //   right: 8px;
      //   content: '\e583';
      // }
      // .mui-navigate-right::before{
      //   content: '\e583';
      // }
      .mui-navigate-right::after{
        right: 8px;
        // content: '\e583';
      }

      .mui-table-view {
        margin-top: 1px;
        &::before{
          height: 0px;
        }
        &::after {
          position: absolute;
          right: 0px;
          bottom: 0px;
          left: 1px;
          height: 1px;
          content: "";
          transform: scaleY(0.5);
          background-color: #979797;
        }
        .mui-table-view-cell {
          padding: 12px 3.2vw 12px;
          &::after {
            height: 0;
          }
          &.mui-active {
            background: #fff;
          }
          .mui-navigate-right {
            font-size: 13px;
            font-weight: 400;
            margin: 0;
            padding: 0;
          }
          .mui-collapse-content {
            margin: 0;
            padding: 0;
            .choose-list-wrap {
              display: flex;
              flex-wrap: wrap;
            }
            .choose-list {
              width: 18.5vw;
              height: 26px;
              font-size: 13px;
              line-height: 26px;
              text-align: center;
              background: #eee;
              margin-right: 2.4vw;
              margin-top: 8px;
              border-radius: 4px;
              color: #333;
              white-space: nowrap;
              text-overflow: ellipsis;
              overflow: hidden;
              &:nth-child(3n) {
                margin-right: 0;
              }
            }
            .choose-active {
              background-color: #fff1f1;
              position: relative;
              overflow: hidden;
              .search-chahao {
                display: block;
                width: 8px;
                height: 8px;
                background: url(../images/search_chahao.svg);
                background-size: 100% 100%;
                position: absolute;
                right: 0;
                bottom: 0;
              }
            }
          }
        }
      }
    }
  }
}

#header, .footer, .hide-while-swipedown-down, .hide-while-swipedown-up {
  transition: transform .5s;
}

.transformUp {
  transform: translateY(-100px)!important;
}

.transformDown {
  transform: translateY(120px)!important;
}

.mui-content {
  padding-bottom: 100px;
}

.footer-form-wrapper-container {
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2) !important;
  height: 100px;
  .info {
    margin-bottom: 0;
  }
  .footer-form-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    .seller-info-wrap {
      display: flex;
      justify-content: center;
      align-items: center;
      padding-left: 12px;
      img {
        width: 24px;
        height: 24px;
      }
      .info {
        padding-left: 12px;
      }
    }
    .form-footer {
      display: flex;
      justify-content: center;
      align-items: center;
      padding-right: 12px;
      flex: 1;
      input {
        margin: 0;
        padding: 0;
      }
      .phone-box {
        flex: 1;
        padding-left: 24px;
      }
      .phone {
        height: 30px;
        font-size: 12px;
        border-radius: 2px 0 0 2px;
        padding-left: 12px;
      }
      .submit {
        width: 62px;
        height: 30px;
        font-size: 14px;
        background: $_theme;
        border-radius: 0 2px 2px 0;
        border-color: $_theme;
      }
    }
  }

  .icon-info-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
    padding: 0 1.6vw;
    .icon-info-list {
      display: flex;
      justify-content: center;
      align-items: center;
      img {
        width: 16px;
        // height: 16px;
      }
      p {
        padding-left: 4px;
        height: 22px;
        line-height: 22px;
      }
    }
  }
}
